package com.entity;


public class Orderinfo {

  private Integer id;
  private Integer orderId;
  private Integer goodsId;
  private Integer goodsNumber;
  private double goodsPrice;
  private Integer goodsCredit;
  private Goods goods;

  public Orderinfo() {
  }

  public Orderinfo(Integer orderId, Integer goodsId, Integer goodsNumber, double goodsPrice, Integer goodsCredit) {
    this.orderId = orderId;
    this.goodsId = goodsId;
    this.goodsNumber = goodsNumber;
    this.goodsPrice = goodsPrice;
    this.goodsCredit = goodsCredit;
  }

  public Orderinfo(Integer id, Integer orderId, Integer goodsId, Integer goodsNumber, double goodsPrice, Integer goodsCredit) {
    this.id = id;
    this.orderId = orderId;
    this.goodsId = goodsId;
    this.goodsNumber = goodsNumber;
    this.goodsPrice = goodsPrice;
    this.goodsCredit = goodsCredit;
  }

  public Goods getGoods() {
    return goods;
  }

  public void setGoods(Goods goods) {
    this.goods = goods;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public Integer getOrderId() {
    return orderId;
  }

  public void setOrderId(Integer orderId) {
    this.orderId = orderId;
  }


  public Integer getGoodsId() {
    return goodsId;
  }

  public void setGoodsId(Integer goodsId) {
    this.goodsId = goodsId;
  }


  public Integer getGoodsNumber() {
    return goodsNumber;
  }

  public void setGoodsNumber(Integer goodsNumber) {
    this.goodsNumber = goodsNumber;
  }


  public double getGoodsPrice() {
    return goodsPrice;
  }

  public void setGoodsPrice(double goodsPrice) {
    this.goodsPrice = goodsPrice;
  }


  public Integer getGoodsCredit() {
    return goodsCredit;
  }

  public void setGoodsCredit(Integer goodsCredit) {
    this.goodsCredit = goodsCredit;
  }

  @Override
  public String toString() {
    return "Orderinfo{" +
            "id=" + id +
            ", orderId=" + orderId +
            ", goodsId=" + goodsId +
            ", goodsNumber=" + goodsNumber +
            ", goodsPrice=" + goodsPrice +
            ", goodsCredit=" + goodsCredit +
            ", goods=" + goods +
            '}';
  }
}
